<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table cellpadding="5">
    <tr>
        <th>key</th>
        <th>用户id</th>
        <th>用户名</th>
        <th>年龄</th>
        <th>entry</th>
    </tr>
    <tr th:each="entry : ${userMap}">
        <td th:text="${entry.key}"></td>
        <td th:text="${entry.value.userId}"></td>
        <td th:text="${entry.value.userName}"></td>
        <td th:text="${entry.value.age}"></td>
        <td th:text="${entry}"></td>
    </tr>

</table>
</body>
</html>